package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap18 extends OSMap
	{
		public function OSMap18()
		{
			super();
			
			var ground:OSGround = new OSGround(0, 1040, 960, 40, 0, false);
			ground.setNoErosionUp([1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20]);
			ground.setNoErosionDown([48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95]);
			ground.setNoErosionLeft([0, 48]);
			ground.setNoErosionRight([47, 95]);
			ground.erode();
			add(ground);
			
			addForeground(new OSTrain(2, 820, true));
			
			ground = new OSGround(450, 760, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			var pillar:OSEntity = new OSEntity(NOTHING, 480, 780); // +30 +20
			pillar.makeGraphic(10, 24, 0xff000000);
			addBackground(pillar);
			
			pillar = new OSEntity(NOTHING, 600, 780); // +150 + 20
			pillar.makeGraphic(10, 24, 0xff000000);
			addBackground(pillar);
			
			ground = new OSGround(440, 800, 460, 80, 0, false);
			ground.setNoErosionUp([15, 16, 17, 18, 19, 20, 21, 22]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(740, 0, 160, 400, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.erode();
			add(ground);
			
			for(var i:uint=0;i<4;i++)
			{
				addBackground(new OSPillar(750 + i * 40, 395, 20, 180));
			}
			
			ground = new OSGround(740, 520, 160, 280, 0, false);
			ground.setNoErosionDown([104, 105, 106, 107, 108, 109, 110, 111]);
			ground.erode();
			add(ground);
		}
	}
}
